package com.github.freegeese.maven.plugin.autocode.demo.base;

/**
 * Created by Administrator on 2017/4/13.
 */
public interface Treeable<ID> extends Sortable<ID> {
    /**
     * 父节点ID
     *
     * @return
     */
    ID getParent();

    void setParent(ID parent);

    /**
     * 所在位置路径(/node1/node-1-1/node-1-1-1)
     *
     * @return
     */
    String getPath();

    void setPath(String path);
}
